package com.yupi.web.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yupi.web.model.entity.Generator;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author 李鱼皮
 * @description 针对表【generator.bat(代码生成器)】的数据库操作Mapper
 * @createDate 2023-12-27 20:49:39
 * @Entity com.yupi.web.model.entity.Generator
 */
@Mapper
public interface GeneratorMapper extends BaseMapper<Generator> {

    @Select("select * from generator where id = #{id}")
    public Generator getById(Long id);


    /**
     * 根据id查询已经删除的生成器
     * @return
     */
    @Select("select id, distPath from generator where  isDelete = 1")
    public List<Generator> selectDeletedData();
}




